All Packages Class Hierarchy This Package Previous Next Index
Class java.naming.Binding
java.lang.Object
|
+----java.naming.NameClassPair
|
+----java.naming.Binding
- public class Binding
- extends NameClassPair
A context consists of name-to-object bindings.
The Binding class represents such a binding. It consists
of an atomic name and an object.
Use subclassing for naming systems that generate contents of
a binding dynamically.
-
boundObj
-
-
Binding(String, Object)
- Constructs an instance of a Binding given its atomic
name and object.
-
getClassName()
- Retrieves the class name of the object bound to the name of this binding.
-
getObject()
- Retrieves the object bound to the name of this binding.
boundObj
protected Object boundObj
Binding
public Binding(String name,
Object obj)
- Constructs an instance of a Binding given its atomic
name and object.
- Parameters:
- name - The atomic name of the object.
- obj - The object bound to name.
getClassName
public String getClassName()
- Retrieves the class name of the object bound to the name of this binding.
- Returns:
- The class name of object bound.
- Overrides:
- getClassName in class NameClassPair
getObject
public Object getObject()
- Retrieves the object bound to the name of this binding.
- Returns:
- The object bound.
All Packages Class Hierarchy This Package Previous Next Index